package top.sssd.auth.service.user;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import top.sssd.auth.model.user.entity.User;
import top.sssd.auth.model.user.request.UserQueryReq;
import top.sssd.auth.model.user.request.UserSaveOrUpdateReq;
import top.sssd.auth.model.user.response.UserResp;

import java.io.Serializable;
import java.util.List;

public interface UserService extends IService<User> {

    Page<UserResp> queryPage(UserQueryReq userQueryReq);

    List<UserResp> queryUserRespListByUserReq(UserQueryReq userQueryReq);

    UserResp getUserRespById(Serializable id);

    Boolean saveUserReq(UserSaveOrUpdateReq userSaveOrUpdateReq);

    Boolean updateUserReq(UserSaveOrUpdateReq userSaveOrUpdateReq);
}

